﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Protocol.Messages.Game.Context
{
    public class GameMapMovementMessage : NetworkMessage
    {
        public GameMapMovementMessage(List<short> keyMovements, int actorID)
            : base(NetworkMessageID.GameMapMovementMessage)
        {
            base.WriterBuffer.writeShort((short)keyMovements.Count);
            keyMovements.ForEach(x => base.WriterBuffer.writeShort(x));
            base.WriterBuffer.writeInt(actorID);
        }
    }
}
